<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
         const names = Array.of('张三','李四','王五','赵六')
    console.log(names)
    names.forEach(name=>{
      if(name === '李四'){
        console.log('李四在此')
       // break 
       return //跳出循环
      }
    })


    </script>
</body>
</html>